/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package score;

import length.Length;

/**
 *
 * @author Daniel Gribel
 */
public class UniqueTypeScore extends Score {
    private Length length;

    public UniqueTypeScore(Length length) {
        super();
        this.length = length;
    }

    @Override
    public void applyScore(int counter) {
        if (counter > 0 && counter == length.getLength())
            setFinalScore((-1) * (length.getLength()));
        else setFinalScore(0);
    }
}
